<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class PropertyRequirement extends AppModel{
    var $name="PropertyRequirement";
    var $actsAs = array('Logable' => array(
        'userModel' => 'User',
        'userKey' => 'user_id',
        'change' => 'full', // options are 'list' or 'full'
        'description_ids' => TRUE // options are TRUE or FALSE
    ));
    var $belongsTo=array(
        'Property'=>array(
            'model'=>'Property'
        ),
        'Requirement'=>array(
            'model'=>'Requirement'
        ),
    );
     var $hasAndBelongsToMany = array(
        'RequirementFault' =>array(
            'className'=> 'RequirementFault',
            'joinTable'=> 'property_requirements_requirement_faults',
            'foreignKey' => 'property_requirement_id',
            'associationForeignKey'  => 'requirement_fault_id',
            )


        );


}
?>
